Choice Question
AutomatR.GoogleForms.Activities.ChoiceQuestion
The "Choice Question" activity in AutomatR is part of the Google Forms activities package, facilitating the creation of a question with multiple-choice options within a Google Form. This activity enhances the form creation process by providing various customization options for the choice question.
Properties
Name | Description |
---|---|
Input | |
FormID | Enter the Form ID to which the choice question should be added. String variables containing the Form ID. This field is required. |
Title | Provide the title for the choice question. String variables containing the title of the choice question. This field is required. |
Description | Provide a description for the choice question. String variables containing the description of the choice question. |
Required | Specify whether the question is required or not. Boolean variables indicating whether the question is required. |
Location | Specify the location or position where the choice question should be added in the form. Integer variables containing the location index. |
Choice Question Type | Select the type of choice question. Options include "Dropdown," "Checkbox," and "Radio." |
Options | Provide options for the choice question. Enter options separated by commas (Example: 'Option1,Option2,Option3'). String variables containing the options. This field is required. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Source URI | The source URI used to insert an image related to the choice question. It can be empty when fetched. String variables containing the source URI. |
Optional | |
Image Alignment | Select the alignment type for the image associated with the choice question. Choose from options like "Left," "Right," "Center," etc. |
Width | Enter the width of the image associated with the choice question. Integer variables containing the width value. |
Delay | Specifies the amount of time (in seconds) to wait before starting the activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Returns the response as Form Details. Variables of relevant types (e.g., BatchUpdateFormResponse) to store the response details. |
How to use:
- Drag and drop the "Choice Question" activity onto the workflow.
- Configure the properties by specifying the Form ID, choice question title, type, options, and other optional settings.
- Optionally, configure the delay before starting the activity.
- Execute the workflow to add a choice question to the specified Google Form.
Example:
Consider an example where the "Choice Question" activity is used to add a dropdown question titled "Select Country" with options "India," "USA," and "Canada" to a Google Form with a Form ID of "xyz789":
Choice Question:
FormID: "xyz789"
Title: "Select Country"
Choice Question Type: Dropdown
Options: "India,USA,Canada"
Location: 3
Image Alignment: Left
Width: 100
Source URI: "https://example.com/country-image.jpg"
Result: formDetails
In this example, the activity adds a dropdown choice question to the Google Form with the specified Form ID, title, type, options, location, image alignment, width, and source URI. The response details are stored in the variable "formDetails" for further handling in the workflow.